var header = {
	props:{
		
	},
	template:`<header>
				<div class="flew acc">
					<div class="search fles acc">
						<input type="text"  :placeholder="placeholder" v-model='searchCtx'/>
						<button type="button" class="btn " @click="search">搜索</button>
					</div>
					<div class="webType">
						<a href="index.html">中文版</a>
						<a href="indexEn.html">英文版</a>
					</div>
					<div class="webType pad">
						<a href=""><i class="icon" style="margin-right: 6px;">&#xe6ac;</i>VIP登录</a>
						<a href="">服务查询</a>
					</div>
				</div>
			</header>`,
	data:function(){
		return{
			placeholder:'请输入要查询的内容',
			searchCtx:''
		}
	},
    methods: {
        search: function () {          
            if (this.searchCtx) {
                location.href = 'searchList.html?keyWord=' + this.keyWord;
            } else {
                location.href = 'search.html';
            }
			//this.$emit('search',this.searchCtx);
		}
	},
	mounted:function(){
		
	}
}
